﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ICanTombstone.cs" company="XamlNinja">
//   2011 Richard Griffin and Ollie Riches
// </copyright>
// <summary>
//   Interface defining the requirements for tombstoning view controls.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace WP7Contrib.View.Controls.Tombstoner
{
    using System;
    using System.Windows.Controls;

    using Microsoft.Phone.Controls;

    public interface ICanTombstone
    {
        Type ControlType { get; }

        void Persist<T>(T control, PhoneApplicationPage page) where T : Control;
        void Restore<T>(T control, PhoneApplicationPage page) where T : Control;
    }
}
